package com.zhanggm.zyk.hetong.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

import com.bw.itext.pdf.annotation.PdfValue;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author zhanggm
 * @since 2024-03-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_m1_hetong")
public class Hetong implements Serializable {

    private static final long serialVersionUID = 1L;

    @PdfValue(colName = "合同Id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 贷款方
     */
    @PdfValue(colName = "贷款方")
    private String daiMingch;

    /**
     * 借款方
     */
    @PdfValue(colName = "借款方")
    private String jieMingch;

    /**
     * 合同金额
     */
    @PdfValue(colName = "合同金额")
    private String jiner;

    /**
     * 附件Id
     */
    private String fujianId;


//    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate shiJian;


    @TableField(exist = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate shiJianStart;

    @TableField(exist = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate shiJianEnd;



    @PdfValue(colName = "合同时间")
    @TableField(exist = false)
    private String fujianName;


}
